package net.edu_soft.ec.asset.pojo;

import java.io.Serializable;
import java.util.Date;

public class Advertising implements Serializable {
    /**
     * 广告id
     */
    private Integer advertisingId;

    /**
     * 广告名
     */
    private String name;

    /**
     * 资源路径
     */
    private String url;

    /**
     * 排序次序
     */
    private Integer sortOrder;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 状态0可用1不可用
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public Integer getAdvertisingId() {
        return advertisingId;
    }

    public void setAdvertisingId(Integer advertisingId) {
        this.advertisingId = advertisingId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", advertisingId=").append(advertisingId);
        sb.append(", name=").append(name);
        sb.append(", url=").append(url);
        sb.append(", sortOrder=").append(sortOrder);
        sb.append(", createDate=").append(createDate);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}